﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using LSEntity;
using LSInterFace;

namespace OralExamEntity
{
    public class OECommonNone
    {
    }

    public class OEIndex : WebPageConfig
    {
        public string Test { get; set; }
    }

    public class OELogin : LoginConfig
    {
        public override string ReturnUrl
        {
            get { return String.IsNullOrEmpty(base.ReturnUrl) ? GetUrl() : base.ReturnUrl; }
            set
            {
                base.ReturnUrl = value;
            }
        }
    }

    public class OETeacher
    {
        public class Common
        {
        }

        public class Index : WebPageConfig
        {
            public List<TestEntity> TestList { get; set; }
        }

        public class Preview : WebPageConfig
        {
            public QuestionOT QuestionOT { get; set; }
        }

        public class TestResult : WebPageConfig
        {
            public int TestId { get; set; }
            public int ClassId { get; set; }
        }

        public class TestBegin : WebPageConfig
        {
            public TestBegin()
            {
                TestClass = new List<TestClassEntity>();
            }

            public List<TestClassEntity> TestClass { get; set; }
        }
    }

    public class OEStudent
    {
        #region Common

        public class Common
        {
            public Common()
            {
                Head = new Head();
                Feet = new Feet();
                UserMessage = new UserMessage();
                LeftMenu = new LeftMenu();
            }

            public Head Head { get; set; }
            public Feet Feet { get; set; }
            public UserMessage UserMessage { get; set; }
            public LeftMenu LeftMenu { get; set; }
        }

        public class Head
        {
            public string UserName { get; set; }

            public string Day
            {
                get { return DateTime.Now.ToString("yyyy年MM月dd日 "); }
            }

            public string Week { get; set; }

            public String LastLoginTime { get; set; }
        }

        public class UserMessage
        {
            public string LocalName { get; set; }
            public string UserName { get; set; }
            public string UserNum { get; set; }
        }

        public class LeftMenu
        {
            public string LocalName { get; set; }
            public string Area { get; set; }
        }

        public class Feet
        {
        }

        #endregion

        public class Index : WebPageConfig
        {
            public Common Common { get; set; }
        }

        public class TestList : WebPageConfig
        {
            public Common Common { get; set; }
            public List<TestClassEntity> TestClassList { get; set; }
        }

        public class Test : WebPageConfig
        {
            public Common Common { get; set; }
        }


        public class MyAccount : WebPageConfig
        {
            public Common Common { get; set; }
            public string UserNum { get; set; }
            public string UserName { get; set; }
            public string Born { get; set; }
            public string Mobile { get; set; }
            public short Gender { get; set; }
            public string Email { get; set; }
        }

        public class MySchool : WebPageConfig
        {
            public Common Common { get; set; }
            
        }
    }
}
